package com.example.myapplicationndk.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ImageInfo implements Parcelable {

   public int imageViewHeight;
    public  int imageViewWidth;

    public int imageViewX;
    public int imageViewY;

    public ImageInfo() {}

    public ImageInfo(Parcel in) {
        imageViewHeight = in.readInt();
        imageViewWidth = in.readInt();
        imageViewX = in.readInt();
        imageViewY = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(imageViewHeight);
        dest.writeInt(imageViewWidth);
        dest.writeInt(imageViewX);
        dest.writeInt(imageViewY);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ImageInfo> CREATOR = new Creator<ImageInfo>() {
        @Override
        public ImageInfo createFromParcel(Parcel in) {
            return new ImageInfo(in);
        }

        @Override
        public ImageInfo[] newArray(int size) {
            return new ImageInfo[size];
        }
    };
}
